import { i18n } from '@app-nextmesh/common/utils';
import { CommandDialog2Footer } from '@app-nextmesh/components/Dialogs';
import { Button } from 'antd';
import { MouseEventHandler } from 'react';

function MeshDialogFooter({ onCancel }: { onCancel: MouseEventHandler }) {
  return (
    <CommandDialog2Footer>
      <Button onClick={onCancel}>{i18n.t('button.cancel')}</Button>
      <Button
        type='primary'
        htmlType='submit'>
        {'Mesh'}
      </Button>
    </CommandDialog2Footer>
  );
}

export { MeshDialogFooter };
